

@model ToDo.Models.ItemViewModels
@{
    ViewData["Title"] = "ChangeItem";
}

@section Style{
<link href="~/css/Item/changeItem.css" rel="stylesheet" />
}
<form id="frmRegist" action="/Item/GetBack" method="post">
    <div class="item-all-information">
        <div class="item-information-part">
            <div class="information-name">
                <img src="~/images/Item/内容 (1).png" class="information-picture" />
                <span>内容</span>
            </div>
            <div class="information-content">
                <input name="content" type="text" value="@Model.Content" maxlength="50" class="information" id="item-content" required />
            </div>
            <div class="error">
                <span id="content-error"></span>
            </div>
        </div><br>
        <div class="item-information-part">
            <div class="information-name">
                <img src="~/images/Item/备注.png" class="information-picture" />
                <span>备注</span>
            </div>
            <div class="information-content">
                <input name="Mark" type="text" value="@Model.Mark" id="item-mark" class="information" required maxlength="30" /><span id="commit"></span>
            </div>
            <div class="error">
                <span id="mark-error"></span>
            </div>
        </div><br>
        <div class="item-information-part">
            <div class="information-name">
                <img src="~/images/Item/创建时间.png" class="information-picture" />
                <span class="picture-mark">创建时间</span>
            </div>
            <div class="information-content">
                <span class="information" id="create-time">@Model.CreateTime</span>
            </div>
        </div><br>
        <div class="item-information-part">
            <div class="information-name">
                <img src="~/images/Item/沙漏已过期18px.png" class="information-picture" />
                <span class="picture-mark">过期时间</span>
            </div>
            <div class="information-content">
                <input name="TimeOfExpiration" type="datetime-local" value="@Model.TimeOfExpiration.GetDateTimeFormats('s')[0].ToString()" class="information" id="finish-time" required />
            </div>
        </div><br>
        <input name="ItemId" value="@Model.ItemId" type="hidden"/>
        <div>
            <input type="submit" class="submit" value="确认"/>
            <a href='javascript:history.go(-1)' class="return">返回</a>
        </div>
    </div>
</form>
@section Scripts{
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="~/js/ajax/sevice.js"></script>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
}